﻿using Furion.DynamicApiController;
using HOPU.OnlineSchool.Application.FileUploads.Dto;
using HOPU.OnlineSchool.Application.FileUploads.Services;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HOPU.OnlineSchool.Application.FileUploads
{
    public class FileAppServices : IDynamicApiController
    {
        private readonly IFileServices _fileServices;

        public FileAppServices(IFileServices fileServices)
        {
            _fileServices = fileServices;
        }

        public OssUploadOutput Upload(IFormFile file, string host)
        {
            return _fileServices.Upload(file, host);
        }
    }
}
